﻿using System;
using System.Collections.Generic;
using System.Text;
using Chaliy.DbPro.Generators.TextAuthoring.Configuration;
using System.Collections.ObjectModel;

namespace Chaliy.DbPro.Generators.Tests.TextAuthoring
{
	internal static class ConfigurationUnitilities
	{
		public static TextConfiguration CreateDefault()
		{
			TextConfiguration configuration = new TextConfiguration
			{

				Paragraph = new ParagraphConfiguration
				{
					MaxLength = 12,
					MinLength = 5
				},
				Sentance = new SentanceConfiguration
				{
					Comas = {
						new TermConfiguration { Value = ",",  Weight = 0.9 },
						new TermConfiguration { Value = ";",  Weight = 0.1 }
					},
					Separators = {
						new TermConfiguration { Value = ".",  Weight = 0.8 },
						new TermConfiguration { Value = "...",  Weight = 0.1 },
						new TermConfiguration { Value = "?",  Weight = 0.1 }
					},
					MinLength = 5,
					MaxLength = 12
				},
				Word = new WordConfiguration
				{
					Samples = {
						new TermConfiguration { Value = "Rob" },
						new TermConfiguration { Value = "Bob"},
						new TermConfiguration { Value = "Dob"}
					}
				}
			};

			return configuration;
		}
	}
}
